import React from 'react';
import {createStackNavigator} from '@react-navigation/stack';
import Root from '../page/about/Root';
import StickyTest from '../test/StickyTest';

import AboutdHeader from '../component/aboutdHeader';
const Stack = createStackNavigator(); // 应用顶部标题
const About = () => {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="关于"
        component={Root}
        options={{
          header: ({insets}) => {
            console.log(insets, 'insets');
            return <AboutdHeader padding={insets.top} />;
          },
        }}
      />
      <Stack.Screen
        name="test"
        component={StickyTest}
        options={{title: '12312'}}
      />
    </Stack.Navigator>
  );
};
export default About;
